const route = [
  {
    path: '/statistics',
    name: "statistics",
    redirect: "/statistics/environmental",
    meta: {
      roles: ['2'],
      show: true
    },
    component: () => import('@/views/statistics/index'),//统计分析
    children: [
      {
        path: 'environmental',
        name: 'environmentalStatistics',
        component: () => import('@/views/statistics/environmental/environmental'),//环境统计
        meta: {
          roles: ['2'],
          show: true
        },
      },
      {
        path: 'consumables',
        name: 'consumablesStatistics',
        component: () => import('@/views/statistics/consumables/consumables'),//耗材统计
        meta: {
          roles: ['2'],
          show: true
        },
      },
      {
        path: 'event',
        name: 'eventStatistics',
        component: () => import('@/views/statistics/event/event'),//事件统计
        meta: {
          roles: ['2'],
          show: true
        },
      },
      {
        path: 'maintain',
        name: 'maintainStatistics',
        component: () => import('@/views/statistics/maintain/maintain'),//维护统计
        meta: {
          roles: ['2'],
          show: true
        },
      },
    ]
  },
]
export default route;